#include <iostream>
using namespace std;
#include "Cuboid.h" // 包含自己的头文件

// 全局函数：判断两个长方体是否相等
bool my_judge(Cuboid &x, Cuboid &y){
    if(x.get_hight() == y.get_hight() && \
        x.get_length() == y.get_length() &&\
        x.get_weight() == y.get_weight()){
        return true;
    }else{
        return false;
    }
}

int main(int argc, const char *argv[]){
    Cuboid c1;
    c1.init(3, 4, 5);
    Cuboid c2;
    c2.init(3, 4, 5);
    Cuboid c3;
    c3.init(3, 3, 4);

    cout << boolalpha;
    cout << my_judge(c1, c2) << endl; // true
    cout << my_judge(c1, c3) << endl; // false

    cout << "-----------------------" << endl;
    cout << c1.my_judge(c1, c2) << endl;
    cout << c1.my_judge(c1, c3) << endl;

    cout << "-----------------------" << endl;
    cout << c1.my_judge(c2) << endl;
    cout << c1.my_judge(c3) << endl;

    return 0;
}